//
//  AesUtil.h
//  ECommunicationGuard
//
//  Created by 恒安嘉新 on 16/9/8.
//  Copyright © 2016年 金亨日. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AesUtil : NSObject

@property (nonatomic, retain)NSMutableArray *mWokingKeyMArr;
@property (nonatomic, retain)NSMutableString *mSourceStr;
@property (nonatomic, assign)char *sourceDatas;
@property (nonatomic, assign)unsigned int strLenUInt;
-(NSData *)aesEncode:(NSData *)source;
-(NSData *)aesDecode:(NSData *)source;
-(NSData *)encode:(NSData *)datas andWithKey:(NSString *)key;
-(void)initEncryption:(BOOL)forEncryption andWithKey:(NSString *)key;
- (NSString *) dataToHexString:(NSData *)buf;

-(NSData *)hexStringToData:(NSString *)hexString;

@end
